package com.bw.module_home.state

import com.bw.lib_common.base.IState
import com.bw.module_home.model.entity.RecommendVideoEntityItem
import com.bw.module_home.model.entity.SimpleTypeEntity
import com.bw.module_home.model.entity.SimpleVideoEntity

/**
 * 状态
 */
sealed class HomeSimpleTypeState: IState {
    /**
     * 加载中
     */
    object Loading:HomeSimpleTypeState()

    /**
     * 空数据
     */
    object Empty:HomeSimpleTypeState()

    /**
     * 成功
     */
    data class Success(val data: List<SimpleTypeEntity>): HomeSimpleTypeState()
    data class Success1(val data: List<RecommendVideoEntityItem>): HomeSimpleTypeState()
    data class Success2(val data: List<SimpleVideoEntity>): HomeSimpleTypeState()

    /**
     * 失败
     */
    data class Error(val message:String): HomeSimpleTypeState()

    /**
     * 初始化
     */
    object Init:HomeSimpleTypeState()

}